<template>
	<view class="page_all">
		<view class="page_titleArea">
			<view class="page_title_line">
				<view class="page_title_line_left" @click="leftClick()"><image src="../../static/all/back_white.png" style="width:50rpx;height:50rpx;"></image></view>
				<view class="page_title_line_middle">出错了！</view>
				<view class="page_title_line_left"></view>
			</view>
		</view>
		<view class="page_contentArea">
			<view class="error_img_box"><image src="../../static/all/error.png" style="width:120rpx;height:120rpx;"></view>
			<view class="error_msg_box">{{errorMsg}}</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				errorMsg:"", //错误信息
			}
		},
		onLoad(option) {
			console.log("参数option==",option);
			if(JSON.stringify(option)!="{}"){
				this.errorMsg=option.errorMsg;
			}
			this.initGlobal_var();//将全局变量初始化
		},
		methods: {
			//顶部导航回退箭头点击触发
			leftClick(){
				uni.redirectTo({
					url:"../init/init",
				})
			},
			//在错误页中将全局变量中的临时交换变量都初始化
			initGlobal_var(){
				getApp().globalData.car_select=null;
				getApp().globalData.query_flag=0;
			},
			//在此之上补充方法
		}
	}
</script>

<style lang="scss">
@import '../../common/css/page.css';
.error_img_box{
	width: 700rpx;
	height: 200rpx;
	display: flex;
	justify-content: center;
	align-items: flex-end;
	margin-bottom: 50rpx;
}
.error_msg_box{
	width: 600rpx;
	color: #B4B4B4;
	font-size: 38rpx;  
	text-align: center;
	font-family: MicrosoftYaHei;
	line-height: 70rpx;
}
</style>
